$(function() {
  $.get('asset/diagram', null, function(data) {
    console.log(data);
    var diagram = flowchart.parse(data);
    diagram.drawSVG('diagram');
  });
});
